import { ArticleController } from "../controller/Article.controller";

export const Routes = [
  {
    method: "post",
    route: "/article",
    controller: ArticleController,
    action: "create",
  },
  {
    method: "get",
    route: "/articles",
    controller: ArticleController,
    action: "findAll",
  },
  {
    method: "get",
    route: "/article/:id",
    controller: ArticleController,
    action: "findOne",
  },
  {
    method: "patch",
    route: "/article/:id",
    controller: ArticleController,
    action: "update",
  },
  {
    method: "delete",
    route: "/article/:id",
    controller: ArticleController,
    action: "delete",
  },
];
